import fetch from './util/fetch';
//删除
export function deleteMerchantCategory(id) {
    return fetch({
        url: '/merchant/inner/category/'+id,
        method: 'delete'
    });
}
//获取
export function getMerchantCategory(merchantId) {
    return fetch({
        url: '/merchant/inner/category/listByMerchantId/'+merchantId,
        method: 'get'
    });
}
//新增add
export function addMerchantCategory(data) {
    return fetch({
        url: 'merchant/inner/category/',
        method: 'post',
        data:data
    });
}